﻿using BooksLib.Models;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BooksLib.Repositories
{
    public interface IStudent
    {
        Task<Student> AddAsync(Student item);//添加异步
        Task<bool> DeleteAsync(int id);//根据id删除异步
        Task<Student> GetItemAsync(int id);//根据id来获取学生信息
        Task<IEnumerable<Student>> GetItemsAsync();
        Task<Student> UpdateAsync(Student item);//更新同步学生信息
    }
}
